<div nz-row class="hdover-title">
  <div nz-col nzSpan="24">
    安全生产信息表
  </div>
</div>
<div class="mb60" class="handoverMain">
  <div nz-row>
    <div nz-col nzSpan="24">
      <div class="hdover-date">
        <div class="flex">
          <nz-date-picker [(ngModel)]="data.datePickerDate" [nzStyle]="{width:'230px',position: 'absolute',right:'0'}"
            [nzFormat]="dateFormat" (ngModelChange)="dateChange($event)" [nzAllowClear]="false">
          </nz-date-picker>
          <nz-spin nzSimple *ngIf="user.loading" style="margin: 20px 0 0 0;"></nz-spin>
        </div>
      </div>
      <nz-collapse>
        <nz-collapse-panel [nzHeader]="collapseTitles.head" nzActive="true" nzDisabled="false">
          <nz-table #basicTable1 nzSize="small" nzBordered [nzNoResult]="' '" [nzData]="data.head"
            nzShowPagination="false">
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="80px">日期</th>
                <th nzAlign="center" nzWidth="150px">段值班安排</th>
                <th nzAlign="center" nzWidth="150px">调度值班安排</th>
                <th nzAlign="center" nzWidth="60px">司机值班</th>
                <th nzAlign="center" nzWidth="220px">添乘安排</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let _data of data.head;index as i;">
                <td>
                  <nz-date-picker [(ngModel)]="_data.DUTY_DATE" nzFormat="MM月dd日" [nzAllowClear]="false">
                  </nz-date-picker>
                </td>
                <td>
                  <textarea class="table-textarea" nz-input [(ngModel)]="_data.DEP_ARRANGE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td>
                  <textarea class="table-textarea" nz-input [(ngModel)]="_data.DIS_ARRANGE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td>
                  <textarea class="table-textarea" nz-input [(ngModel)]="_data.DRIVER" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td>
                  <textarea class="table-textarea" nz-input [(ngModel)]="_data.ARRANGE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
              </tr>
            </tbody>
          </nz-table>
        </nz-collapse-panel>
      </nz-collapse>
    </div>
  </div>

  <div class="handover-scroll">
    <div nz-row class="m10">
      <!-- 安全信息 -->
      <div nz-col nzSpan="24">
        <nz-collapse>
          <nz-collapse-panel [nzHeader]="collapseTitles.aqxx + 
            (trueStatistic(data.aqxx.gt) + 
            trueStatistic(data.aqxx.pt) + 
            trueStatistic(data.aqxx.qtxx) + 
            trueStatistic(data.aqxx.raqxxfxzz))+'件'" nzActive="true" nzDisabled="false">
            <div class="hdover-bold">
              1.高铁信息：{{trueStatistic(data.aqxx.gt)}}件
              <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
                (click)="this.addRow(data.aqxx.gt)"><i nz-icon nzType="plus-circle"></i>添加
              </button>
            </div>
            <nz-table #gtxxTable [nzNoResult]="' '" [nzData]="data.aqxx.gt" nzShowPagination="false" nzSize="small"
              nzBordered>
              <thead>
                <tr>
                  <th nzAlign="center" nzWidth="50px">序号</th>
                  <th nzAlign="center" nzWidth="70px">车间</th>
                  <th nzAlign="center" nzWidth="70px">车站</th>
                  <th nzAlign="center" nzWidth="80px">记事</th>
                  <th nzAlign="center" nzWidth="100px">影响行车</th>
                  <th nzAlign="center" nzWidth="200px">概况</th>
                  <th nzAlign="center" nzWidth="300px">处理情况及原因</th>
                  <th nzAlign="center" nzWidth="100px">需继续追踪的部门</th>
                  <th *ngIf="allEditable" nzAlign="center" nzWidth="50px">操作</th>
                </tr>
              </thead>
              <tbody>
                <tr *ngFor="let _data of data.aqxx.gt;index as index">
                  <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                  <td nzAlign="center">
                    <textarea class="table-textarea" nz-input [(ngModel)]="_data.ORG" (click)="onChange_cj(_data.ORG)"
                      (ngModelChange)="onChange_cj($event)" [nzAutocomplete]="auto_cj" nzAutosize
                      [disabled]="!allEditable"></textarea>
                    <nz-autocomplete #auto_cj nzWidth="200px">
                      <nz-auto-option *ngFor="let opt of user.cj_filter" [nzValue]="opt.VC_NAME"
                        (click)="onClick_cj(opt.VC_ORG$ID)">{{opt.VC_NAME}}
                      </nz-auto-option>
                    </nz-autocomplete>
                  </td>
                  <td nzAlign="center">
                    <textarea class="table-textarea" nz-input [(ngModel)]="_data.STATION"
                      (click)="onChange_cj(_data.STATION)" (ngModelChange)="onChange_cz($event)"
                      [nzAutocomplete]="auto_cz" nzAutosize [disabled]="!allEditable"></textarea>
                    <nz-autocomplete #auto_cz nzWidth="200px">
                      <nz-auto-option *ngFor="let opt of user.cz_filter" [nzValue]="opt.VC_NAME">
                        {{opt.VC_NAME}}
                      </nz-auto-option>
                    </nz-autocomplete>
                  </td>
                  <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="_data.RECORD" nzAutosize
                      [disabled]="!allEditable"></textarea></td>
                  <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="_data.EFFECT" nzAutosize
                      [disabled]="!allEditable"></textarea></td>
                  <td><textarea class="table-textarea" nz-input [(ngModel)]="_data.DESCR" nzAutosize
                      [disabled]="!allEditable"></textarea></td>
                  <td><textarea class="table-textarea" nz-input [(ngModel)]="_data.HANDLE" nzAutosize
                      [disabled]="!allEditable"></textarea></td>
                  <td><textarea class="table-textarea" nz-input [(ngModel)]="_data.TRACK" nzAutosize
                      [disabled]="!allEditable"></textarea></td>
                  <td *ngIf="allEditable" nzAlign="center">
                    <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.aqxx.gt)"
                      class="hdover-hover"></i>
                    <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                      (nzOnConfirm)="this.deleteRow(data.aqxx.gt,index)" title="删除" class="hdover-hover"></i>
                  </td>
                </tr>
              </tbody>
            </nz-table>
            <div class="hdover-bold">
              2.普铁信息：{{trueStatistic(data.aqxx.pt)}}件
              <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
                (click)="this.addRow(data.aqxx.pt)"><i nz-icon nzType="plus-circle"></i>添加
              </button>
            </div>
            <nz-table #ptxxTable [nzNoResult]="' '" [nzData]="data.aqxx.pt" nzShowPagination="false" nzSize="small"
              nzBordered>
              <thead>
                <tr>
                  <th nzAlign="center" nzWidth="50px">序号</th>
                  <th nzAlign="center" nzWidth="70px">车间</th>
                  <th nzAlign="center" nzWidth="70px">车站</th>
                  <th nzAlign="center" nzWidth="80px">记事</th>
                  <th nzAlign="center" nzWidth="100px">影响行车</th>
                  <th nzAlign="center" nzWidth="200px">概况</th>
                  <th nzAlign="center" nzWidth="300px">处理情况及原因</th>
                  <th nzAlign="center" nzWidth="100px">需继续追踪的部门</th>
                  <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作</th>
                </tr>
              </thead>
              <tbody>
                <tr *ngFor="let _data of data.aqxx.pt;index as index">
                  <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                  <td><textarea class="table-textarea" nz-input [(ngModel)]="_data.ORG" (click)="onChange_cj(_data.ORG)"
                      (ngModelChange)="onChange_cj($event)" [nzAutocomplete]="auto_cj" nzAutosize
                      [disabled]="!allEditable"></textarea>
                    <nz-autocomplete #auto_cj nzWidth="200px">
                      <nz-auto-option *ngFor="let opt of user.cj_filter" [nzValue]="opt.VC_NAME"
                        (click)="onClick_cj(opt.VC_ORG$ID)">{{opt.VC_NAME}}
                      </nz-auto-option>
                    </nz-autocomplete>
                  </td>
                  <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="_data.STATION"
                      (click)="onChange_cz(_data.STATION)" (ngModelChange)="onChange_cz($event)"
                      [nzAutocomplete]="auto_cz" nzAutosize [disabled]="!allEditable"></textarea>
                    <nz-autocomplete #auto_cz nzWidth="200px">
                      <nz-auto-option *ngFor="let opt of user.cz_filter" [nzValue]="opt.VC_NAME">
                        {{opt.VC_NAME}}
                      </nz-auto-option>
                    </nz-autocomplete>
                  </td>
                  <td><textarea class="table-textarea" nz-input [(ngModel)]="_data.RECORD" nzAutosize
                      [disabled]="!allEditable"></textarea></td>
                  <td><textarea class="table-textarea" nz-input [(ngModel)]="_data.EFFECT" nzAutosize
                      [disabled]="!allEditable"></textarea></td>
                  <td><textarea class="table-textarea" nz-input [(ngModel)]="_data.DESCR" nzAutosize
                      [disabled]="!allEditable"></textarea>
                  </td>
                  <td><textarea class="table-textarea" nz-input [(ngModel)]="_data.HANDLE" nzAutosize
                      [disabled]="!allEditable"></textarea></td>
                  <td><textarea class="table-textarea" nz-input [(ngModel)]="_data.TRACK" nzAutosize
                      [disabled]="!allEditable"></textarea></td>
                  <td nzAlign="center" *ngIf="allEditable">
                    <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.aqxx.pt)"
                      class="hdover-hover"></i>
                    <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                      (nzOnConfirm)="this.deleteRow(data.aqxx.pt,index)" title="删除" class="hdover-hover"></i>
                  </td>
                </tr>
              </tbody>
            </nz-table>
            <div class="hdover-bold">
              3.其他信息：{{trueStatistic(data.aqxx.qtxx)}}件
              <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
                (click)="this.addRow(data.aqxx.qtxx)"><i nz-icon nzType="plus-circle"></i>添加
              </button>
            </div>
            <div *ngFor="let item of data.aqxx.qtxx;index as i" class="hdover-list" style="display: flex;">
              <textarea [(ngModel)]="item.INFOR" class="hdover-width-textarea table-textarea"
                style="border:1px solid #40a9ff;" nz-input nzAutosize [disabled]="!allEditable"></textarea>
              <div class="hdover-flex" style="margin-left:10px;" *ngIf="allEditable">
                <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.aqxx.qtxx)"
                  class="hdover-hover"></i>
                <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                  (nzOnConfirm)="this.deleteRow(data.aqxx.qtxx,i)" title="删除" class="hdover-hover hdover-del"></i>
              </div>
            </div>
            <nz-divider></nz-divider>
            <div class="hdover-bold">
              4.日安全信息分析追踪：{{trueStatistic(data.aqxx.raqxxfxzz)}}件
              <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
                (click)="this.addRow(data.aqxx.raqxxfxzz)"><i nz-icon nzType="plus-circle"></i>添加
              </button>
            </div>
            <div *ngFor="let item of data.aqxx.raqxxfxzz;index as i" class="hdover-list" style="display: flex;">
              <textarea [(ngModel)]="item.INFOR" class="hdover-width-textarea table-textarea"
                style="border:1px solid #40a9ff;" nz-input nzAutosize [disabled]="!allEditable"></textarea>
              <div class="hdover-flex" style="margin-left:10px;" *ngIf="allEditable">
                <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.aqxx.raqxxfxzz)"
                  class="hdover-hover"></i>
                <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                  (nzOnConfirm)="this.deleteRow(data.aqxx.raqxxfxzz,i)" title="删除" class="hdover-hover hdover-del"></i>
              </div>
            </div>
            <nz-divider></nz-divider>
            <div class="hdover-bold">
              5.日安全风险提示：{{trueStatistic(data.aqxx.raqfxts)}}件
              <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
                (click)="this.addRow(data.aqxx.raqfxts)"><i nz-icon nzType="plus-circle"></i>添加
              </button>
            </div>
            <div *ngFor="let item of data.aqxx.raqfxts;index as index" class="hdover-list" style="display: flex;">
              <textarea [(ngModel)]="item.INFOR" class="hdover-width-textarea table-textarea"
                style="border:1px solid #40a9ff;" nz-input nzAutosize [disabled]="!allEditable"></textarea>
              <div class="hdover-flex" style="margin-left:10px;" *ngIf="allEditable">
                <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.aqxx.raqfxts)"
                  class="hdover-hover"></i>
                <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                  (nzOnConfirm)="this.deleteRow(data.aqxx.raqfxts,index)" title="删除"
                  class="hdover-hover hdover-del"></i>
              </div>
            </div>
          </nz-collapse-panel>
        </nz-collapse>
      </div>
    </div>
  </div>

  <div nz-row class="m10">
    <!-- 二.生产信息方面 -->
    <div nz-col nzSpan="24">
      <nz-collapse>
        <nz-collapse-panel [nzHeader]="collapseTitles.scxx" nzActive="true" nzDisabled="false">
          <div class="hdover-bold">
            1.段生产重点追踪信息反馈：
            <textarea class="handInputWidth" [(ngModel)]="data.scxx.zzph[0].PROD_INFO" nz-input
              [nzAutosize]="{ minRows: 1, maxRows: 8 }" [disabled]="!allEditable">
            </textarea>
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.scxx.dfk)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table #dfkTable [nzNoResult]="' '" [nzData]="data.scxx.dfk" nzShowPagination="false" nzSize="small"
            nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="50px">序号</th>
                <th nzAlign="center" nzWidth="70px">车间</th>
                <th nzAlign="center" nzWidth="150px">信息概况及整改要求</th>
                <th nzAlign="center" nzWidth="150px">追踪情况</th>
                <th nzAlign="center" nzWidth="80px">整改部门</th>
                <th nzAlign="center" nzWidth="100px">处理销号上报情况</th>
                <th *ngIf="allEditable" nzAlign="center" nzWidth="50px">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.scxx.dfk;index as index">
                <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                <td>
                  <textarea class="table-textarea" nz-input [(ngModel)]="row.ORG" (click)="onChange_cj(row.ORG)"
                    (ngModelChange)="onChange_cj($event)" [nzAutocomplete]="auto_cj" nzAutosize
                    [disabled]="!allEditable"></textarea>
                  <nz-autocomplete #auto_cj nzWidth="200px">
                    <nz-auto-option *ngFor="let opt of user.cj_filter" [nzValue]="opt.VC_NAME">
                      {{opt.VC_NAME}}
                    </nz-auto-option>
                  </nz-autocomplete>
                </td>
                <td>
                  <textarea class="table-textarea" nz-input [(ngModel)]="row.INF_REQ" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td style="width:25%;"><textarea class="table-textarea" nz-input [(ngModel)]="row.INFOR" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.REFORM" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.HANDLE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.scxx.dfk)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.scxx.dfk,index)" title="删除" class="hdover-hover"></i>
                </td>
              </tr>
            </tbody>
          </nz-table>
          <div class="hdover-bold">
            <span class="hdover-lineTitle">2.总公司、集团公司日安全分析重点追踪信息：</span>
            <textarea class="handInputWidth" nz-input [(ngModel)]="data.scxx.zzph[0].IMP_TRACK_INFO"
              [nzAutosize]="{ minRows: 1, maxRows: 8 }" [disabled]="!allEditable"></textarea>
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.scxx.zgszz)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table #zgszzTable [nzNoResult]="' '" [nzData]="data.scxx.zgszz" nzShowPagination="false" nzSize="small"
            nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="50px">序号</th>
                <th nzAlign="center" nzWidth="50px">完成情况</th>
                <th nzAlign="center" nzWidth="100px">问题来源</th>
                <th nzAlign="center" nzWidth="100px">问题发生时间</th>
                <th nzAlign="center" nzWidth="300px">信息概况及整改要求</th>
                <th nzAlign="center" nzWidth="150px">追踪要求</th>
                <th nzAlign="center" nzWidth="100px">追踪负责人</th>
                <th nzAlign="center" nzWidth="200px">追踪整改情况</th>
                <th nzAlign="center" nzWidth="100px">完成时限</th>
                <th nzAlign="center" nzWidth="150px">处理销号上报情况</th>
                <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.scxx.zgszz;index as i">
                <td nzAlign="center" class="hdover-index-width">{{+i + 1}}</td>
                <td nzAlign="center" nzShowCheckbox [(nzChecked)]="row._vcFinished"
                  (nzCheckedChange)="checkedChange(row)"></td>
                <td>
                  <textarea class="table-textarea" nz-input [(ngModel)]="row.SOURCE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center">
                  <nz-date-picker [(ngModel)]="row.PROBLEM_TIME" [nzAllowClear]="false">
                  </nz-date-picker>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.INF_REQ" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.TRACK_REQ" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.CHARGE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.REFORM_INFO" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td>
                  <nz-date-picker [(ngModel)]="row.FINISHDATE" [nzAllowClear]="false">
                  </nz-date-picker>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.HANDLE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.scxx.zgszz)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.scxx.zgszz,i)" title="删除" class="hdover-hover"></i>
                </td>
                <td style="display:none"><textarea class="table-textarea" nz-input [(ngModel)]="row.INFO"></textarea>
                </td>
              </tr>
            </tbody>
          </nz-table>
          <div class="hdover-bold">
            <span class="hdover-lineTitle">3.段日安全分析重点追踪信息反馈：</span>
            <textarea class="handInputWidth" nz-input [(ngModel)]="data.scxx.zzph[0].IMP_TRACK_INFO_DUAN"
              [nzAutosize]="{ minRows: 1, maxRows: 8 }" [disabled]="!allEditable"></textarea>
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.scxx.dzz)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table #draqfkTable [nzNoResult]="' '" [nzData]="data.scxx.dzz" nzShowPagination="false" nzSize="small"
            nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="50px">序号</th>
                <th nzAlign="center" nzWidth="50px">完成情况</th>
                <th nzAlign="center" nzWidth="100px">问题来源</th>
                <th nzAlign="center" nzWidth="150px">问题发生时间</th>
                <th nzAlign="center" nzWidth="150px">信息概况及整改要求</th>
                <th nzAlign="center" nzWidth="150px">追踪要求</th>
                <th nzAlign="center" nzWidth="100px">追踪负责人</th>
                <th nzAlign="center" nzWidth="100px">追踪整改情况</th>
                <th nzAlign="center" nzWidth="150px">完成时限</th>
                <th nzAlign="center" nzWidth="150px">处理销号上报情况</th>
                <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.scxx.dzz;index as index">
                <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                <td nzAlign="center" nzShowCheckbox [(nzChecked)]="row._vcFinished"
                  (nzCheckedChange)="checkedChange(row)">
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.SOURCE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center">
                  <nz-date-picker [(ngModel)]="row.PROBLEM_TIME" [nzAllowClear]="false">
                  </nz-date-picker>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.INF_REQ" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.TRACK_REQ" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.CHARGE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.REFORM_INFO" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center">
                  <nz-date-picker [(ngModel)]="row.FINISHDATE" [nzAllowClear]="false">
                  </nz-date-picker>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.HANDLE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.scxx.dzz)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.scxx.dzz,index)" title="删除" class="hdover-hover"></i>
                </td>
              </tr>
            </tbody>
          </nz-table>
          <div class="hdover-bold">
            4.天窗计划情况
          </div>
          <div class="hdover-bold">
            ①昨日({{getToday(0, data.datePickerDate)}})施工计划：
            <textarea class="handInputWidth" [(ngModel)]="data.scxx.zzph[0].TC_INFO" nz-input
              [nzAutosize]="{ minRows: 1, maxRows: 8 }" [disabled]="!allEditable"></textarea>
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.scxx.tcjhqk.zrsgjh)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table #zrsgjhTable [nzNoResult]="' '" [nzData]="data.scxx.tcjhqk.zrsgjh" nzShowPagination="false"
            nzSize="small" nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="50px">序号</th>
                <th nzAlign="center" nzWidth="100px">计划号</th>
                <th nzAlign="center" nzWidth="50px">等级</th>
                <th nzAlign="center" nzWidth="100px">地点</th>
                <th nzAlign="center" nzWidth="150px">计划时间（分钟）</th>
                <th nzAlign="center" nzWidth="400px">内容</th>
                <th nzAlign="center" nzWidth="100px">把关人员</th>
                <th nzAlign="center" nzWidth="300px">完成情况</th>
                <th nzAlign="center" nzWidth="100px">发现重点问题</th>
                <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.scxx.tcjhqk.zrsgjh;index as index">
                <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.PLAN_NUM" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.PLAN_LEVEL" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.ADDR" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.PLAN_TIME" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.CONTENT" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.PERSON" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.STATUS" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.PROBLEM" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.scxx.tcjhqk.zrsgjh)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.scxx.tcjhqk.zrsgjh,index)" title="删除" class="hdover-hover"></i>
                </td>
              </tr>
            </tbody>
          </nz-table>
          <div class="hdover-bold">
            ②今日({{getToday(1, data.datePickerDate)}})施工计划：
            <textarea class="handInputWidth" [(ngModel)]="data.scxx.jrzzph[0].TC_INFO" nz-input
              [nzAutosize]="{ minRows: 1, maxRows: 8 }" [disabled]="!allEditable"></textarea>
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.scxx.tcjhqk.jrsgjh)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table #jrsgjhTable [nzNoResult]="' '" [nzData]="data.scxx.tcjhqk.jrsgjh" nzShowPagination="false"
            nzSize="small" nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="50px">序号</th>
                <th nzAlign="center" nzWidth="100px">计划号</th>
                <th nzAlign="center" nzWidth="50px">等级</th>
                <th nzAlign="center" nzWidth="100px">地点</th>
                <th nzAlign="center" nzWidth="150px">计划时间（分钟）</th>
                <th nzAlign="center" nzWidth="400px">内容</th>
                <th nzAlign="center" nzWidth="100px">把关人员</th>
                <th nzAlign="center" nzWidth="300px">完成情况</th>
                <th nzAlign="center" nzWidth="100px">发现重点问题</th>
                <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.scxx.tcjhqk.jrsgjh;index as index">
                <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.PLAN_NUM" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.PLAN_LEVEL" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.ADDR" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.PLAN_TIME" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.CONTENT" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.PERSON" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.STATUS" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.PROBLEM" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.scxx.tcjhqk.jrsgjh)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.scxx.tcjhqk.jrsgjh,index)" title="删除" class="hdover-hover"></i>
                </td>
              </tr>
            </tbody>
          </nz-table>
          <div class="hdover-bold">
            <span class="hdover-lineTitle">③昨日({{getToday(0, data.datePickerDate)}})施工配合计划：</span>
            <textarea class="handInputWidth" nz-input [(ngModel)]="data.scxx.zzph[0].TIANCHUAN_INFO"
              [nzAutosize]="{ minRows: 1, maxRows: 8 }" [disabled]="!allEditable"></textarea>
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.scxx.tcjhqk.zrsgphjh)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table #zrsgphjhTable [nzNoResult]="' '" [nzData]="data.scxx.tcjhqk.zrsgphjh" nzShowPagination="false"
            nzSize="small" nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="50px">序号</th>
                <th nzAlign="center" nzWidth="100px">计划号</th>
                <th nzAlign="center" nzWidth="50px">等级</th>
                <th nzAlign="center" nzWidth="100px">地点</th>
                <th nzAlign="center" nzWidth="150px">计划时间（分钟）</th>
                <th nzAlign="center" nzWidth="400px">内容</th>
                <th nzAlign="center" nzWidth="100px">现场配合人员</th>
                <th nzAlign="center" nzWidth="300px">完成情况</th>
                <th nzAlign="center" nzWidth="100px">发现重点问题</th>
                <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.scxx.tcjhqk.zrsgphjh;index as index">
                <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.PLAN_NUM" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.PLAN_LEVEL" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.ADDR" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.PLAN_TIME" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.CONTENT" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.PERSON" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.STATUS" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.PROBLEM" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.scxx.tcjhqk.zrsgphjh)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.scxx.tcjhqk.zrsgphjh,index)" title="删除" class="hdover-hover"></i>
                </td>
              </tr>
            </tbody>
          </nz-table>
          <div class="hdover-bold">
            <span class="hdover-lineTitle">④今日({{getToday(1, data.datePickerDate)}}}施工配合计划：</span>
            <textarea class="handInputWidth" nz-input [(ngModel)]="data.scxx.jrzzph[0].TIANCHUAN_INFO"
              [nzAutosize]="{ minRows: 1, maxRows: 8 }" [disabled]="!allEditable"></textarea>
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.scxx.tcjhqk.jrsgphjh)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table #jrsgphjhTable [nzNoResult]="' '" [nzData]="data.scxx.tcjhqk.jrsgphjh" nzShowPagination="false"
            nzSize="small" nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="50px">序号</th>
                <th nzAlign="center" nzWidth="100px">计划号</th>
                <th nzAlign="center" nzWidth="50px">等级</th>
                <th nzAlign="center" nzWidth="100px">地点</th>
                <th nzAlign="center" nzWidth="150px">计划时间（分钟）</th>
                <th nzAlign="center" nzWidth="400px">内容</th>
                <th nzAlign="center" nzWidth="100px">现场配合人员</th>
                <th nzAlign="center" nzWidth="300px">完成情况</th>
                <th nzAlign="center" nzWidth="100px">发现重点问题</th>
                <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.scxx.tcjhqk.jrsgphjh;index as index">
                <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.PLAN_NUM" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.PLAN_LEVEL" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.ADDR" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.PLAN_TIME" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.CONTENT" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.PERSON" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.STATUS" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.PROBLEM" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.scxx.tcjhqk.jrsgphjh)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.scxx.tcjhqk.jrsgphjh,index)" title="删除" class="hdover-hover"></i>
                </td>
              </tr>
            </tbody>
          </nz-table>
          <div class="hdover-bold">
            ⑤维修计划
          </div>
          <nz-table class="noHover" #wxjhTable [nzNoResult]="' '" [nzData]="data.scxx.tcjhqk.zrwxjh.I.gt"
            nzShowPagination="false" nzSize="small" nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="100px">日期</th>
                <th nzAlign="center" nzWidth="50px">级别</th>
                <th nzAlign="center" nzWidth="50px">线别</th>
                <th nzAlign="center" nzWidth="50px">数量</th>
                <th nzAlign="center" nzWidth="500px">工作内容</th>
                <th nzAlign="center" nzWidth="50px">兑现情况</th>
                <th nzAlign="center" nzWidth="100px">把关人</th>
                <th nzAlign="center" nzWidth="100px">完成情况</th>
                <th nzAlign="center" nzWidth="200px">备注</th>
                <th nzAlign="center" nzWidth="50px">天窗计划表</th>
              </tr>
            </thead>
            <tbody>
              <ng-container *ngFor="let wxjhData of [data.scxx.tcjhqk.zrwxjh,data.scxx.tcjhqk.jrwxjh];index as j">
                <ng-container
                  *ngFor="let rows of [wxjhData.I.gt,wxjhData.I.pt,wxjhData.II.gt,wxjhData.II.pt];index as i">
                  <tr>
                    <td nzAlign="center" rowspan="4" *ngIf="i==0&&j==0">
                      {{rows[0].REPAIR_DATE || getTheDate()}}
                    </td>
                    <td nzAlign="center" rowspan="4" *ngIf="i==0&&j==1">
                      {{rows[0].REPAIR_DATE || getTheDate(1)}}
                    </td>
                    <td nzAlign="center" rowspan="2" *ngIf="i==0">
                      {{rows[0].REPAIR_LEVEL || "Ⅰ"}}
                    </td>
                    <td nzAlign="center" rowspan="2" *ngIf="i==2">
                      {{rows[0].REPAIR_LEVEL || "Ⅱ"}}
                    </td>
                    <td nzAlign="center" *ngIf="i==0||i==2">
                      {{rows[0].LINE || "高铁"}}
                    </td>
                    <td nzAlign="center" *ngIf="i==1||i==3">
                      {{rows[0].LINE || "普铁"}}
                    </td>
                    <td><textarea class="table-textarea" nz-input [(ngModel)]="rows[0].NUM" nzAutosize
                        [disabled]="!allEditable"></textarea>
                    </td>
                    <td><textarea class="table-textarea" nz-input [(ngModel)]="rows[0].CONTENT" nzAutosize
                        [disabled]="!allEditable"></textarea>
                    </td>
                    <td><textarea class="table-textarea" nz-input [(ngModel)]="rows[0].FINISH_NUM" nzAutosize
                        [disabled]="!allEditable"></textarea></td>
                    <td><textarea class="table-textarea" nz-input [(ngModel)]="rows[0].PERSON" nzAutosize
                        [disabled]="!allEditable"></textarea></td>
                    <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="rows[0].STATUS"
                        nzAutosize [disabled]="!allEditable"></textarea></td>
                    <td><textarea class="table-textarea" nz-input [(ngModel)]="rows[0].REMARK" nzAutosize
                        [disabled]="!allEditable"></textarea></td>
                    <td>
                      <a *ngIf="rows[0].ID" (click)="showTcjhb(rows[0],j,i)">详情</a>
                    </td>
                  </tr>
                </ng-container>
              </ng-container>
            </tbody>
          </nz-table>
          <div class="hdover-bold">
            <span class="hdover-lineTitle">⑥点外计划：</span>
            <textarea class="handInputWidth" nz-input [(ngModel)]="data.scxx.zzph[0].DIANWAI"
              [nzAutosize]="{ minRows: 1, maxRows: 8 }" [disabled]="!allEditable"></textarea>
          </div>

          <nz-divider></nz-divider>
          <div class="hdover-bold">
            ⑦紧急修计划：
            <textarea class="handInputWidth" [(ngModel)]="data.scxx.zzph[0].EMER_INFO" nz-input
              [nzAutosize]="{ minRows: 1, maxRows: 8 }" [disabled]="!allEditable"></textarea>
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.scxx.tcjhqk.jjxjh)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table #jjxjhTable [nzNoResult]="' '" [nzData]="data.scxx.tcjhqk.jjxjh" nzShowPagination="false"
            nzSize="small" nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="50px">序号</th>
                <th nzAlign="center" nzWidth="100px">车间</th>
                <th nzAlign="center" nzWidth="100px">项数</th>
                <th nzAlign="center" nzWidth="400px">作业内容及情况</th>
                <th nzAlign="center" nzWidth="150px">后续安排</th>
                <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.scxx.tcjhqk.jjxjh;index as index">
                <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.ORG" (click)="onChange_cj(row.ORG)"
                    (ngModelChange)="onChange_cj($event)" [nzAutocomplete]="auto_cj" nzAutosize
                    [disabled]="!allEditable"></textarea>
                  <nz-autocomplete #auto_cj nzWidth="200px">
                    <nz-auto-option *ngFor="let opt of user.cj_filter" [nzValue]="opt.VC_NAME">
                      {{opt.VC_NAME}}
                    </nz-auto-option>
                  </nz-autocomplete>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.NUM" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.CONTENT" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.FOLLOW" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.scxx.tcjhqk.jjxjh)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.scxx.tcjhqk.jjxjh,index)" title="删除" class="hdover-hover"></i>
                </td>
              </tr>
            </tbody>
          </nz-table>
          <div class="hdover-bold">
            5.车载数据换装及升级情况
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.scxx.czsj)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table #czhzqkTable [nzNoResult]="' '" [nzData]="data.scxx.czsj" nzShowPagination="false" nzSize="small"
            nzBordered [nzWidthConfig]="['50px', '100px', '300px', '50px', '50px', '50px', '200px', '50px']">
            <thead>
              <tr>
                <th nzAlign="center" [attr.rowspan]="2">序号</th>
                <th nzAlign="center" [attr.rowspan]="2">版本号</th>
                <th nzAlign="center" [attr.rowspan]="2">换装内容</th>
                <th nzAlign="center" [attr.colspan]="3">换装计划/完成台数</th>
                <th nzAlign="center" [attr.rowspan]="2">备注</th>
                <th nzAlign="center" [attr.rowspan]="2" style="white-space: nowrap" *ngIf="allEditable">操作
                </th>
              </tr>
              <tr>
                <th nzAlign="center">总数</th>
                <th nzAlign="center">已换</th>
                <th nzAlign="center">未换</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.scxx.czsj;index as index">
                <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.VERSON" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.CONTENT" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.TOTAL" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.FINISH" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.UNFINISH" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.REMARK" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.scxx.czsj)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.scxx.czsj,index)" title="删除" class="hdover-hover"></i>
                </td>
              </tr>
            </tbody>
          </nz-table>
          <div class="hdover-bold">
            6.分路不良统计分析：
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.scxx.flbltj)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table #flbltjTable [nzNoResult]="' '" [nzData]="data.scxx.flbltj" nzShowPagination="false" nzSize="small"
            nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="150px">日期</th>
                <th nzAlign="center" nzWidth="150px">当日统计数量</th>
                <th nzAlign="center" nzWidth="150px">变化数量</th>
                <th nzAlign="center" nzWidth="150px">前一日统计数量</th>
                <th nzAlign="center" nzWidth="300px">变化情况</th>
                <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.scxx.flbltj;index as index">
                <td>
                  <nz-date-picker [(ngModel)]="row.ANALY_DATE" [nzAllowClear]="false">
                  </nz-date-picker>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.DAY" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.CHANGE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.YESTERDAY" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.CONTENT" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.scxx.flbltj)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.scxx.flbltj,index)" title="删除" class="hdover-hover"></i>
                </td>
              </tr>
            </tbody>
          </nz-table>
          <div class="hdover-bold">
            7.领导、干部行踪：
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.scxx.ldxz)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table class="noHover" #ldxzTable [nzNoResult]="' '" [nzData]="data.scxx.ldxz" nzShowPagination="false"
            nzSize="small" nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="50px">序号</th>
                <th nzAlign="center" nzWidth="100px">姓名</th>
                <th nzAlign="center" nzWidth="150px">职务</th>
                <th nzAlign="center" nzWidth="150px">地点</th>
                <th nzAlign="center" nzWidth="300px">检查项目</th>
                <th nzAlign="center" nzWidth="50px">合计</th>
                <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.scxx.ldxz;index as index">
                <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.NAME" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.JOB" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.ADDR" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.CONTENT" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td *ngIf="index==0" [attr.rowspan]="data.scxx.ldxz.length" nzAlign="center">
                  {{data.scxx.ldxz.length}}人
                </td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.scxx.ldxz)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.scxx.ldxz,index)" title="删除" class="hdover-hover"></i>
                </td>
              </tr>
            </tbody>
          </nz-table>
        </nz-collapse-panel>
      </nz-collapse>
    </div>
  </div>

  <div nz-row class="m10">
    <!-- 三.其它信息 -->
    <div nz-col nzSpan="24">
      <nz-collapse>
        <nz-collapse-panel [nzHeader]="collapseTitles.qtxx" nzActive="true" nzDisabled="false">
          <div class="hdover-bold">
            1.安全预警书统计情况：
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.qtxx.aqyjstj)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table #aqyjstjTable [nzNoResult]="' '" [nzData]="data.qtxx.aqyjstj" nzShowPagination="false"
            nzSize="small" nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="50px">序号</th>
                <th nzAlign="center" nzWidth="100px">类型</th>
                <th nzAlign="center" nzWidth="100px">编号</th>
                <th nzAlign="center" nzWidth="100px">发放人</th>
                <th nzAlign="center" nzWidth="100px">批准领导</th>
                <th nzAlign="center" nzWidth="100px">责任部门</th>
                <th nzAlign="center" nzWidth="200px">预警概述</th>
                <th nzAlign="center" nzWidth="300px">控制要求</th>
                <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.qtxx.aqyjstj;index as index">
                <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.TYPE" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.NO" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.PERSON" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.APPROVE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.ORG" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.WARNING" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.REQUIRE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.qtxx.aqyjstj)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.qtxx.aqyjstj,index)" title="删除" class="hdover-hover"></i>
                </td>
              </tr>
            </tbody>
          </nz-table>
          <div class="hdover-bold">
            2.安全风险通知书统计：
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.qtxx.aqfxtzstj)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table #aqfxtzstjTable [nzNoResult]="' '" [nzData]="data.qtxx.aqfxtzstj" nzShowPagination="false"
            nzSize="small" nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="50px">序号</th>
                <th nzAlign="center" nzWidth="100px">类型</th>
                <th nzAlign="center" nzWidth="100px">发属</th>
                <th nzAlign="center" nzWidth="100px">发放人</th>
                <th nzAlign="center" nzWidth="100px">风险等级</th>
                <th nzAlign="center" nzWidth="150px">责任部门</th>
                <th nzAlign="center" nzWidth="550px">内容</th>
                <th nzAlign="center" nzWidth="100px">督办部门</th>
                <th nzAlign="center" nzWidth="150px">主管领导要求</th>
                <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.qtxx.aqfxtzstj;index as index">
                <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.TYPE" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.PRO" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.PERSON" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.RISK" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.ORG" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.CONTENT" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.SUPERVISION" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.REQUIRE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.qtxx.aqfxtzstj)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.qtxx.aqfxtzstj,index)" title="删除" class="hdover-hover"></i>
                </td>
              </tr>
            </tbody>
          </nz-table>
          <div class="hdover-bold">
            3.交班重点工作要求：
            <button *ngIf="allEditable" nz-button nzType="primary" nzGhost class="hdover-addList"
              (click)="this.addRow(data.qtxx.jbyq)"><i nz-icon nzType="plus-circle"></i>添加
            </button>
          </div>
          <nz-table #jbyqTable [nzNoResult]="' '" [nzData]="data.qtxx.jbyq" nzShowPagination="false" nzSize="small"
            nzBordered>
            <thead>
              <tr>
                <th nzAlign="center" nzWidth="50px">序号</th>
                <th nzAlign="center" nzWidth="300px">问题要求</th>
                <th nzAlign="center" nzWidth="300px">落实情况</th>
                <th nzAlign="center" nzWidth="120px">落实部门</th>
                <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let row of data.qtxx.jbyq;index as index">
                <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.REQUIRE" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td><textarea class="table-textarea" nz-input [(ngModel)]="row.FINISH" nzAutosize
                    [disabled]="!allEditable"></textarea>
                </td>
                <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.ORG" nzAutosize
                    [disabled]="!allEditable"></textarea></td>
                <td nzAlign="center" *ngIf="allEditable">
                  <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.qtxx.jbyq)"
                    class="hdover-hover"></i>
                  <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
                    (nzOnConfirm)="this.deleteRow(data.qtxx.jbyq,index)" title="删除" class="hdover-hover"></i>
                </td>
              </tr>
            </tbody>
          </nz-table>
        </nz-collapse-panel>
      </nz-collapse>
    </div>
  </div>
</div>
<div style="height: 50px"></div>
<div class="hdover-allsave" [ngStyle]="{'width':allsaveWidth}">
  <button *ngIf="allEditable" nz-button nzType="primary" (click)="save()" style="margin-right:20px"
    [disabled]="user.loading">
    <i nz-icon nzType="save" nzTheme="outline"></i>
    全部保存
    <!-- ({{autoSaveTiming}}) -->
  </button>
  <button nz-button nzType="primary" (click)="toRd()">
    <i nz-icon nzType="box-plot" nzTheme="outline"></i>
    投影页面
  </button>
  <button nz-button nzType="primary" (click)="exportSheet()" style="margin-left: 28px;">
    <i nz-icon nzType="vertical-align-bottom" nzTheme="outline"></i>
    导出
  </button>
</div>

<nz-modal [(nzVisible)]="tcjhb.tcjhbVisible" [nzTitle]="tcjhb.title" (nzOnCancel)="tcjhbCancel()"
  [nzFooter]="modalFooter" nzWidth="1800px" [nzBodyStyle]="tcjhb.style">
  <ng-template #modalFooter>
    <button *ngIf="allEditable" nz-button nzType="primary" (click)="this.addRow(tcjhb.data)" style="margin-right:10px"
      [disabled]="tcjhb.loading">
      <i nz-icon nzType="plus-circle"></i>
      添加
    </button>
    <button *ngIf="allEditable" nz-button nzType="primary" (click)="saveTcjhb()" style="margin-right:20px"
      [disabled]="tcjhb.loading">
      <i nz-icon nzType="save" nzTheme="outline"></i>
      保存
    </button>
  </ng-template>
  <div style="overflow: scroll;height:500px">
    <nz-table #jjxjhTable nzBordered nzSize="small" [nzData]="tcjhb.data"
      [nzTitle]="tcjhb.itemsRepairDayTotal&&'总共 '+ tcjhb.itemsRepairDayTotal +' 条数据'" [nzFrontPagination]="false"
      [nzPageSize]="5" [nzTotal]="tcjhb.itemsRepairDayTotal" [(nzPageIndex)]="tcjhb.repairDayPageIndex"
      (nzPageIndexChange)="updateRepairDayData(tcjhb.repairDayPageIndex)"
      [nzShowQuickJumper]="tcjhb.itemsRepairDayTotal>20">
      <thead>
        <tr>
          <th nzAlign="center" nzWidth="50px">序号</th>
          <th nzAlign="center" nzWidth="50px">计划号</th>
          <th nzAlign="center" nzWidth="80px">登记站</th>
          <th nzAlign="center" nzWidth="50px">行别</th>
          <th nzAlign="center" nzWidth="100px">项目</th>
          <th nzAlign="center" nzWidth="80px">天窗类型</th>
          <th nzAlign="center" nzWidth="250px">施工内容</th>
          <th nzAlign="center" nzWidth="50px">时间</th>
          <th nzAlign="center" nzWidth="100px">兑现时间</th>
          <th nzAlign="center" nzWidth="80px">把关人</th>
          <th nzAlign="center" nzWidth="100px">配合单位</th>
          <th nzAlign="center" nzWidth="130px">作业单位及负责人</th>
          <th nzAlign="center" nzWidth="150px">备注</th>
          <th nzAlign="center" nzWidth="50px" *ngIf="allEditable">操作
          </th>
        </tr>
      </thead>
      <tbody>
        <tr *ngFor="let row of tcjhb.data;index as index">
          <td nzAlign="center" class="hdover-index-width">{{+index + 1}}</td>
          <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.PLANCODE" nzAutosize
              [disabled]="!allEditable"></textarea>
          </td>
          <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.STATION" nzAutosize
              [disabled]="!allEditable"></textarea>
          </td>
          <td><textarea class="table-textarea" nz-input [(ngModel)]="row.XINGBIE" nzAutosize
              [disabled]="!allEditable"></textarea>
          </td>
          <td><textarea class="table-textarea" nz-input [(ngModel)]="row.PROJECT" nzAutosize
              [disabled]="!allEditable"></textarea>
          </td>
          <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.TC_TYPE" nzAutosize
              [disabled]="!allEditable"></textarea>
          </td>
          <td><textarea class="table-textarea" nz-input [(ngModel)]="row.CONTENT" nzAutosize></textarea>
          </td>
          <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.TIME" nzAutosize
              [disabled]="!allEditable"></textarea></td>
          <td nzAlign="center">
            <nz-date-picker [(ngModel)]="row.FINISHDATE" [nzAllowClear]="false" [disabled]="!allEditable">
            </nz-date-picker>
          </td>
          <td><textarea class="table-textarea" nz-input [(ngModel)]="row.CHARGE" nzAutosize
              [disabled]="!allEditable"></textarea>
          </td>
          <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.UNIT" nzAutosize
              [disabled]="!allEditable"></textarea></td>
          <td nzAlign="center"><textarea class="table-textarea" nz-input [(ngModel)]="row.WORK_UNIT" nzAutosize
              [disabled]="!allEditable"></textarea>
          </td>
          <td><textarea class="table-textarea" nz-input [(ngModel)]="row.NOTE" nzAutosize
              [disabled]="!allEditable"></textarea></td>
          <td nzAlign="center" *ngIf="allEditable">
            <i nz-icon nzType="plus" nzTheme="outline" (click)="this.addRow(data.scxx.tcjhqk.jjxjh)"
              class="hdover-hover"></i>
            <i nz-icon nzType="delete" nzTheme="outline" nz-popconfirm nzTitle="确定删除吗？"
              (nzOnConfirm)="this.deleteRow(tcjhb.data,index)" title="删除" class="hdover-hover"></i>
          </td>
        </tr>
      </tbody>
    </nz-table>
  </div>
</nz-modal>